package com.lj.frame.role.model.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.List;

@Data
public class AddRoleDto {
    private Integer id;
    @ApiModelProperty(name = "角色名称")
    private String name;
    @ApiModelProperty(name = "角色备注")
    private String memo;
    @ApiModelProperty(name = "角色状态")
    private Integer status;

    @NotNull(message = "不允许为空")
    @ApiModelProperty(name = "选中的菜单")
    private List<Integer> checkedIdList = new ArrayList<>();
}
